package voidgame.core;

import java.util.HashMap;

public class Material{
	
	String name;
	int type; //mineral, gaseous, organic, synthetic
	HashMap<String, Integer> properties;
	Object seed;	
	
	public Material(String n, int t, Object s){
		name = n;
		type = t;
		seed = s;
		
		properties = new HashMap<String, Integer>();
		
		properties.put("fuel", 0);
		properties.put("food", 0);
		properties.put("medicine", 0);
		properties.put("strength", 0);
		properties.put("weight", 0);
		//addmore
		
		switch(type){
			case 0: generateMineral();break;
			case 1: generateGas();break;
			case 2: generateOrganic();break;
			case 3: generateSynthetic();break;
		
		}
	}
	
	public void generateMineral(){
		Planet source = (Planet)seed;
		
	}
	
	public void generateGas(){
		Planet source = (Planet)seed;
		
	}
	
	public void generateOrganic(){
		Organic source = (Organic)seed;
		
	}
	
	public void generateSynthetic(){
		Civilisation source = (Civilisation)seed;
		
	}
}